﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLLMisIdeas;

namespace MisIdeas.Ideas
{
    public partial class IdeasLista : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnCargarNuevo_Click(object sender, EventArgs e)
        {
            MI_Idea nuevaIdea = new MI_Idea();
            nuevaIdea.MI_Nombre = txtNombre.Text;
            nuevaIdea.MI_Objetivos = txtObjetivos.Text;

            BLLIdeas bllIdeas = new BLLIdeas();
            bllIdeas.CargarIdea(nuevaIdea);
            gvIDeas.DataBind();
        }
    }
}